home *** CD-ROM | disk | FTP | other *** search
- ;void get_cursor_shape();
-
- EXTRN _memory_model:byte
- EXTRN _start_line:byte
- EXTRN _stop_line:byte
-
- _TEXT SEGMENT BYTE PUBLIC 'CODE'
- ASSUME CS:_TEXT
- PUBLIC _get_cursor_shape
- _get_cursor_shape proc near
- mov ah,3 ;func to read cursor pos
- mov bh,0 ;page number
- int 10h ;read position and shape
- mov _start_line,ch ;set start_line
- mov _stop_line,cl ;set stop_line
- cmp _memory_model,0 ;quit
- jle quit ;
- db 0CBh ;RET far
- quit: ret ;RET near
- _get_cursor_shape endp
- _TEXT ENDS
- END